﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Entity;
using MES_SystemUI.Domain;
using MES_SystemUI.Helpers;
using System.Runtime.InteropServices;

namespace MES_SystemUI.Context
{
    public class MES_SystemContext:DbContext
    {
        public MES_SystemContext():base(EncryptionAndDecryption.GetSQLStr)
        {
        }
        public DbSet<Device> devices { get; set; }
        public DbSet<DeviceCategorie> deviceCategories { get; set; }
        public DbSet<DeviceInspection> deviceInspections { get; set; }
        public DbSet<DeviceMaintenance> deviceMaintenances { get; set; }
        public DbSet<DeviceSpec> deviceSpecs { get; set; }
        public DbSet<Material> materials { get; set; }
        public DbSet<MaterialCategorie> materialCategories { get; set; }
        public DbSet<MaterialDetail> materialDetails { get; set; }
        public DbSet<MaterialReceive> materialReceives { get; set; }
        public DbSet<MaterialReceiveDetail> materialReceiveDetails { get; set; }
        public DbSet<MaterialSpec> materialSpecs { get; set; }
        public DbSet<Product> products { get; set; }
        public DbSet<ProductCategorie> productCategories { get; set; }
        public DbSet<ProductionLine> productionLines { get; set; }
        public DbSet<ProductionLineCategorie> productionLineCategories { get; set; }
        public DbSet<ProductionPlan> productionPlans { get; set; }
        public DbSet<ProductionPlanDetail> productionPlanDetails { get; set; }
        public DbSet<ProductionProcesse> productionProcesses { get; set; }
        public DbSet<ProductionTechnologie> productionTechnologies { get; set; }
        public DbSet<ProductionTechnologyDetail> productionTechnologyDetails { get; set; }
        public DbSet<ProductSpec> productSpecs { get; set; }
        public DbSet<Store> stores { get; set; }
        public DbSet<StoreCategorie> storeCategories { get; set; }
        public DbSet<Team> teams { get; set; }
        public DbSet<TeamMember> teamMembers { get; set; }
        public DbSet<Unit> units { get; set; }
        public DbSet<User> users { get; set; }
        public DbSet<WorkShop> workShops { get; set; }
        public DbSet<WorkShopCategorie> workShopCategories { get; set; }

    }

}
